package cn.yzstu.reactive;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @author Baldwin
 */
public class StreamProgram {
    public List<Boy> getBoyList() {
        return Stream.of(new Boy("Jack", 21),
                new Boy("Baldwin", 18),
                new Boy("Tom", 35)).collect(Collectors.toList());
    }
}
